

import 'package:bruno/bruno.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class Success{

  BuildContext? context;

  static Success of(BuildContext context){
    Success success = Success();
    success.context = context;
    return success;
  }

  void show(String text){
    BrnToast.show(text??'', context!,
        gravity: BrnToastGravity.center,
        preIcon: const Image(
            image: AssetImage('assets/image/successful.png'),
            width: 20,
            height: 20));
  }
}